package com.dingqb.ktdemo.data

/**
数据类
 */
data class KtData(var name: String, var age: String) {

}


fun main() {
    var da = KtData("tom", "18");
    println(da.toString());
    var dad = KtData(name = "ttt", age = "1188-years")
    println(dad.toString());
    var cp = da.copy(age = "1199-years", name = "tom1")
    println(cp.toString());

	cp.age="12121";
	println(da);

    var (name, age) = dad;
    var (age2, name2) = dad;
    println("$name,$age")
    println("$name2,$age2")
    var pair = Pair(1, 2);
    println(pair)
    var triple = Triple(da, da, da);
    println(triple)

}